#include <stdio.h>
#include <unistd.h>
#include <curses.h>

int main(){
	initscr();
	move(5,15);
	printw("%s\n","hello");
	
	
	if(has_colors()){
		printw("has color");
		start_color();
		init_pair(1, COLOR_RED, COLOR_GREEN);
		attrset(COLOR_PAIR(1));
		mvprintw(5 + 1, 5, "Color pair %d", 1);
	}else{
		printw("don't has color");
	}
	refresh();
	sleep(2);
	endwin();
//	exit(0);
	
	return 0;
}